package acm.天梯3;

import java.util.Scanner;

public class B {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int i=1;
        while (sc.hasNext()) {
            int r = sc.nextInt();
            if (r==0)return;
            int a=sc.nextInt();
            int b = sc.nextInt();
            System.out.println(a*a+b*b<=(2*r)*(2*r)?"Pizza "+i+" fits on the table.":"Pizza "+i+" does not fit on the table.");
            i++;
        }
    }
}
